<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>管理后台</title>
    <link rel="stylesheet/less" href="../../../static/css/index.less"/>
    <link rel="stylesheet" href="../../../static/layui/css/layui.css"/>
    <link rel="stylesheet" href="../../../static/css/jquery.pagination.css"/>
    <script src="../../../static/js/jquery-1.12.3.js"></script>
    <script src="../../../static/js/less.min.js"></script>
    <script src="../../../static/layui/layui.js"></script>
    <script src="../../../static/js/ajaxfileupload.js"></script>
    <script src="../../../static/layer/layer.js"></script>
    <SCRIPT language=javascript src="../../static/layer/layer.js"></SCRIPT>
</head>
<style>
    #test1{
        display: inline-block;
        width:15%;
    }
</style>
<body class="layui-layout-body">

{% include "/admin/top.html" %}
{% include "/admin/left.html" %}

<div id="box" class="fl">
    <div class="content" style="height: 100%">
        <h3 style="color:  #3D89CB">商家列表</h3>
        <div class="search">
            <label>会员名称：</label>
            <input class="name" value="" id="uid" type="text" placeholder="请输入相应的信息" style="width: 150px"/>
            <label>选择日期：</label>
            <input type="text" class="layui-input" id="test1" value=""  placeholder="请输入相应的日期"
                   style="width: 150px">
            <button onclick="get_data(1)" class="s_button" style="background-color:  #3D89CB">搜索</button>
            <button class="s_button clearfix"
                    style="color: white;background-color: #3D89CB;margin-right: 100px ;float: right"
                    onclick='location.href="/admin/add_business.html"'>新增商家</button>
        </div>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <thead>
            <tr>
                <th width="8%">ID</th>
                <th>openId</th>
                <th>昵称</th>

            </tr>
            </thead>
            <tbody id="content">

            {% if res %}
               {% for data in res %}
                    <tr>
                   <td>{{ data.uid }}</td>
                   <td>{{ data.wxOpenId  }}</td>
                   <td>{{ data.wxNickName }}</td></tr>
                {% endfor %}
            {% else %}
                <tr><td colspan =8 align="center">暂无数据</td></tr>
            {% endif %}

         </tr>
            </tbody>
        </table>
        <div id="page" class="ui-pagination-container">
        </div>
    </div>
</div>
</div>
<input type="hidden" value="1" id="p" >
</body>
</html>
<script>
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#test1', //指定元素
        });
    });

</script>
